You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > TVec Class > TVec Methods > GetRow Method > TVec.GetRow Method ([In] TMtx, int)
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
TVec.GetRow Method ([In] TMtx, int)

Copies a row from matrix.

Syntax
C#
Visual Basic
public TVec GetRow([In] TMtx Mtx, int Row);

Copies the Row-th row from Mtx matrix to calling vector. The TMtxVecBase.Length and TMtxVec.ComplexComplexproperties of calling vector are adjusted automatically. An exception is raised if condition checking is enabled and Row is greater than Mtx.Rows-1.

var a: TVec; b: TMtx; begin CreateIt(a); CreateIt(b); try b.SetIt(2,2,False,[1,2, 3,4]); a.GetRow(b,0); // a now contains [1,2] finally FreeIt(a); FreeIt(b); end; end;
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!